﻿/// <reference path="http://ajax.microsoft.com/ajax/beta/0911/start.debug.js" />

//jQuery
Sys.loader.defineScripts(null,
    [
        {
            name: "jQuery",
            releaseUrl: Sys.loader.applicationPath + "Scripts/jquery-2.1.3.min.js",
            debugUrl: Sys.loader.applicationPath + "Scripts/jquery-2.1.3.js",
            isLoaded: !!(window.jQuery && jQuery.fn)
        }
    ]
);

//MicrosoftMvc
Sys.loader.defineScripts(
    {
        releaseUrl: Sys.loader.applicationPath + "Scripts/" + "{0}.js",
        debugUrl: Sys.loader.applicationPath + "Scripts/" + "{0}.debug.js"
    },
    [
        {
            name: "MicrosoftAjax"
        },
        {
            name: "MicrosoftMvcAjax",
            dependencies: ["MicrosoftAjax"],
            isLoaded: !!(window.Sys && Sys.Mvc && Sys.Mvc.AjaxContext)
        },
        {
            name: "MicrosoftMvcValidation",
            dependencies: ["MicrosoftMvcAjax"],
            isLoaded: !!(window.Sys && Sys.Mvc && Sys.Mvc.AjaxContext)
        }
    ]
);

//jQuery.validate
Sys.loader.defineScripts(
    {
        releaseUrl: Sys.loader.applicationPath + "Scripts/" + "{0}.js",
        debugUrl: Sys.loader.applicationPath + "Scripts/" + "{0}.js"
    },
    [
        {
            name: "jquery.validate",
            dependencies: ["jQuery"]
        },
        {
            name: "jquery.validate.unobtrusive",
            dependencies: ["jQuery", "jquery.validate"]
        },
        {
            name: "jquery.unobtrusive-ajax",
            dependencies: ["jQuery"]
        }
    ]
);

//jQuery.validate
Sys.loader.defineScripts(
    [
        {
            name: "modernizr",
            releaseUrl: Sys.loader.applicationPath + "Scripts/modernizr-2.8.3.js",
            debugUrl: Sys.loader.applicationPath + "Scripts/modernizr-2.8.3.js"
        }
    ]
);

//jqGrid
Sys.loader.defineScripts(null,
    [
        {
            name: "jqGrid",
            releaseUrl: Sys.loader.applicationPath + "Scripts/jqGrid/jquery.jqGrid.min.js",
            debugUrl: Sys.loader.applicationPath + "Scripts/jqGrid/jquery.jqGrid.min.js",
            dependencies: ["jqGridExtend"],
            executionDependencies: ["jQuery", "jqGrid.Culture.en"],
            isLoaded: !!(window.jQuery && jQuery.fn && jQuery.fn.jqGrid && jQuery.jgrid)
        },
        {
            name: "jqGridExtend",
            releaseUrl: Sys.loader.applicationPath + "Scripts/jqGrid/grid.extend.js",
            debugUrl: Sys.loader.applicationPath + "Scripts/jqGrid/grid.extend.js",
            dependencies: ["jQuery"]
        }
    ]
);

//jqUI
Sys.loader.defineScripts(null,
    [
        {
            name: "jqUI",
            releaseUrl: Sys.loader.applicationPath + "Scripts/jqUI/jquery-ui-1.8.23.custom.min.js",
            debugUrl: Sys.loader.applicationPath + "Scripts/jqUI/ui.loader.js",
            dependencies: ["iHouse.Culture.en"],
            executionDependencies: ["jQuery"]
        },
        {
            name: "jqUIExtend",
            releaseUrl: Sys.loader.applicationPath + "Scripts/jqUI/ui.extend.js",
            debugUrl: Sys.loader.applicationPath + "Scripts/jqUI/ui.extend.js",
            dependencies: ["jQuery"]
        },
        {
            name: "jqExpand",
            releaseUrl: Sys.loader.applicationPath + "Scripts/jqUI/ui.expand.js",
            debugUrl: Sys.loader.applicationPath + "Scripts/jqUI/ui.expand.js",
            dependencies: ["jQuery"]
        }
    ]
);

//Culture
Sys.loader.defineScripts(null,
    [
        {
            name: "jqUI.Datepicker.Culture.cn",
            releaseUrl: Sys.loader.applicationPath + "Scripts/jqUI/i18n/ui.datepicker-zh-CN.js",
            debugUrl: Sys.loader.applicationPath + "Scripts/jqUI/i18n/ui.datepicker-zh-CN.js",
            dependencies: ["jQuery"]
        },
        {
            name: "jqGrid.Culture.cn",
            releaseUrl: Sys.loader.applicationPath + "Scripts/jqGrid/js/i18n/grid.locale-cn.js",
            debugUrl: Sys.loader.applicationPath + "Scripts/jqGrid/js/i18n/grid.locale-cn.js",
            dependencies: ["jQuery"]
        },
        {
            name: "jqGrid.Culture.en",
            releaseUrl: Sys.loader.applicationPath + "Scripts/jqGrid/js/i18n/grid.locale-en.js",
            debugUrl: Sys.loader.applicationPath + "Scripts/jqGrid/js/i18n/grid.locale-en.js",
            dependencies: ["jQuery"]
        },
        {
            name: "iHouse.Culture.en",
            releaseUrl: Sys.loader.applicationPath + "Scripts/Shared/iHouse.en-us.js",
            debugUrl: Sys.loader.applicationPath + "Scripts/Shared/iHouse.en-us.js",
            dependencies: ["jQuery"]
        },
        {
            name: "iHouse.Culture.cn",
            releaseUrl: Sys.loader.applicationPath + "Scripts/Shared/iHouse.zh-cn.js",
            debugUrl: Sys.loader.applicationPath + "Scripts/Shared/iHouse.zh-cn.js",
            dependencies: ["jQuery"]
        }
    ]
);

//UI
Sys.loader.defineScripts(null,
    [
        {
            name: "BookUI",
            releaseUrl: Sys.loader.applicationPath + "Scripts/Book/BookUI.debug.js",
            debugUrl: Sys.loader.applicationPath + "Scripts/Book/BookUI.debug.js",
            dependencies: ["jQuery", "jqUI"]
        },
        {
            name: "NoteUI",
            releaseUrl: Sys.loader.applicationPath + "Scripts/Note/NoteUI.debug.js",
            debugUrl: Sys.loader.applicationPath + "Scripts/Note/NoteUI.debug.js",
            dependencies: ["jQuery", "jqUI"]
        }
    ]
);

//Custom UI
        Sys.loader.defineScripts(null,
    [
        {
            name: "MakeItUp",
            releaseUrl: Sys.loader.applicationPath + "Scripts/jqUI/markitup/jquery.markitup.pack.js",
            debugUrl: Sys.loader.applicationPath + "Scripts/jqUI/markitup/jquery.markitup.js",
            dependencies: ["jQuery"]
        },
        {
            name: "rateit",
            releaseUrl: Sys.loader.applicationPath + "Scripts/jqUI/rateit/jquery.rateit.js",
            debugUrl: Sys.loader.applicationPath + "Scripts/jqUI/rateit/jquery.rateit.js",
            dependencies: ["jQuery"]
        },
        {
            name: "bxSlider",
            releaseUrl: Sys.loader.applicationPath + "Scripts/jqUI/bxSlider/jquery.bxSlider.min.js",
            debugUrl: Sys.loader.applicationPath + "Scripts/jqUI/bxSlider/jquery.bxSlider.js",
            dependencies: ["jQuery"]
        },
        {
            name: "colorbox",
            releaseUrl: Sys.loader.applicationPath + "Scripts/jqUI/colorbox/jquery.colorbox.js",
            debugUrl: Sys.loader.applicationPath + "Scripts/jqUI/colorbox/jquery.colorbox.js",
            dependencies: ["jQuery"]
        },
        {
            name: "isotope",
            releaseUrl: Sys.loader.applicationPath + "Scripts/jqUI/isotope/jquery.isotope.min.js",
            debugUrl: Sys.loader.applicationPath + "Scripts/jqUI/isotope/jquery.isotope.min.js",
            dependencies: ["jQuery"]
        }
    ]
);